<data_save> : Save Text (Variable Content) To File

Save textual data to file.

Syntax: 

<data_save>("Text", "File", "Mode")

Text
Text to be saved (or variable containing text to be saved).

File
Full path to the file with data (e.g., "c:\mydocuments\data.txt").

Mode
Can be one of the following values:
"A" - the data will be appended to the end of the file
"" - (empty) the data will be written to the begin of the file

Example: 

<#> This macro adds current date to a new line in the end of the file.
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<varset>("vData=%_vKeyReturn%%_vCurrDate_MMDDYYYY%","")
<data_save>("vData","vFile","A")